package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.util.Date;

/**
 * @title: Sqfw_form_summary_pdf
 * @Author Tan
 * @Date: 2023/6/1 17:20
 * @Version 1.0
 */

@Data
@Accessors(chain = true)
@Table("shequ.sqfw_form_summary_pdf")
@Comment("pdf记录表")
@ApiModel(description = "pdf记录表")
public class Sqfw_form_summary_pdf implements Serializable {

    private static final long serialVersionUID = 1L;
    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("summary_id")
    @Comment("消防安全排除id")
    @ApiModelProperty(description = "消防安全排除id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String summaryId;

    @Column("index")
    @Comment("序号")
    @ApiModelProperty(description = "序号")
    @ColDefine(type = ColType.INT, width = 120)
    private int index;

    @Column("status")
    @Comment("状态")
    @ApiModelProperty(description = "状态（1:正在创建，2:创建成功，3:传教失败）")
    @ColDefine(type = ColType.VARCHAR, width = 8)
    private String status;

    @Column("url")
    @Comment("pdf链接")
    @ApiModelProperty(description = "pdf链接")
    @ColDefine(type = ColType.VARCHAR, width = 1024)
    private String url;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date createDate;

    @Column("update_date")
    @Comment("更新时间")
    @ApiModelProperty(description = "更新时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date updateDate;

    @Column("create_by")
    @Comment("更新人")
    @ApiModelProperty(description = "创建人")
    @ColDefine(type = ColType.VARCHAR, width = 1024)
    private String createBy;

    @Column("update_by")
    @Comment("更新人")
    @ApiModelProperty(description = "更新人")
    @ColDefine(type = ColType.VARCHAR, width = 1024)
    private String updateBy;
}
